package com.cxhc.system.service.app.impl;

import java.util.List;

import com.cxhc.common.annotation.Integral;
import com.cxhc.common.enums.IntegralType;
import com.cxhc.system.domain.app.RpConAdjust;
import com.cxhc.system.mapper.app.RpConAdjustMapper;
import com.cxhc.system.service.app.IRpConAdjustService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 矛盾调节Service业务层处理
 * 
 * @author Dhq
 * @date 2024-08-15
 */
@Service
public class RpConAdjustServiceImpl implements IRpConAdjustService
{
    @Autowired
    private RpConAdjustMapper rpConAdjustMapper;

    /**
     * 查询矛盾调节
     * 
     * @param ID 矛盾调节主键
     * @return 矛盾调节
     */
    @Override
    public RpConAdjust selectRpConAdjustByID(Long ID)
    {
        return rpConAdjustMapper.selectRpConAdjustByID(ID);
    }

    /**
     * 查询矛盾调节列表
     * 
     * @param rpConAdjust 矛盾调节
     * @return 矛盾调节
     */
    @Override
    public List<RpConAdjust> selectRpConAdjustList(RpConAdjust rpConAdjust)
    {
        return rpConAdjustMapper.selectRpConAdjustList(rpConAdjust);
    }

    /**
     * 新增矛盾调节
     * 
     * @param rpConAdjust 矛盾调节
     * @return 结果
     */
    @Override
    @Integral(IntegralType.CONTRADICTION)
    public int insertRpConAdjust(RpConAdjust rpConAdjust)
    {
        return rpConAdjustMapper.insertRpConAdjust(rpConAdjust);
    }

    /**
     * 修改矛盾调节
     * 
     * @param rpConAdjust 矛盾调节
     * @return 结果
     */
    @Override
    public int updateRpConAdjust(RpConAdjust rpConAdjust)
    {
        return rpConAdjustMapper.updateRpConAdjust(rpConAdjust);
    }

    @Override
    public int overRpConAdjust(RpConAdjust rpConAdjust) {
        return rpConAdjustMapper.overRpConAdjust(rpConAdjust);
    }

    /**
     * 批量删除矛盾调节
     * 
     * @param IDs 需要删除的矛盾调节主键
     * @return 结果
     */
    @Override
    public int deleteRpConAdjustByIDs(Long[] IDs)
    {
        return rpConAdjustMapper.deleteRpConAdjustByIDs(IDs);
    }

    /**
     * 删除矛盾调节信息
     * 
     * @param ID 矛盾调节主键
     * @return 结果
     */
    @Override
    public int deleteRpConAdjustByID(Long ID)
    {
        return rpConAdjustMapper.deleteRpConAdjustByID(ID);
    }
}
